// pages/detail-music/detail-music.js
import recommendStore from '../../store/recommendStore'
Page({
  data:{
    songs:[]
  },
  onLoad() {
    recommendStore.onState("recommendSongs", this.handelRecommendSongs)
  },
  handelRecommendSongs(value) {
    this.setData({ songs: value })
  },
  onUnload() {
    recommendStore.offState("recommendSongs", this.handelRecommendSongs)
  },
})